/* Inventory Table Styles */
.inventory-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  table-layout: auto; /* ← Add this line */
}

.inventory-table th,
.inventory-table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  text-align: left;
}

.inventory-table th {
  background-color: #333;
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Row hover effect */
.inventory-table tbody tr:hover {
  background-color: #f0f0f0;
}

/* Zebra striping */
.inventory-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Focus highlight */
.inventory-table td:focus {
  outline: 2px solid #007bff;
  background-color: #eef;
}

/* Inventory level colors (used in JS logic) */
.low {
  background-color: #f28b82 !important;
}
.medium {
  background-color: #fff475 !important;
}
.high {
  background-color: #81c995 !important;
}

/* Toast Notifications */
.toast-container,
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}
.toast {
  background-color: #ffcc00;
  color: #000;
  padding: 10px 16px;
  margin-top: 10px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  animation: fadeInOut 5s ease forwards;
}
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Button styling */
button {
  padding: 10px 16px;
  font-size: 14px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: #555;
}

/* Row highlight for selected (if used later) */
tr.selected {
  background-color: #ACB9FF !important;
}
